home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / libs / phigs / ptk.lha / ptk / include / machine.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-21  |  2.6 KB  |  134 lines

  1. #ifndef _MACHINE_
  2. #define _MACHINE_
  3.  
  4. /* some trivial macros for dealing with
  5. ** old K&R C compilers vs. ANSI C,
  6. ** __STDC__ is a built-in macro in ANSI C Compilers.
  7. ** (c) Ian Cottam, University of Manchester.
  8. */
  9. #if __STDC__
  10. #define ARGS(parameters) parameters
  11. #define C(parameter) parameter
  12. #define PreANSI(parameters) % nothing %
  13. #else
  14. #define ARGS(parameters) ()
  15. #define C(parameter) /* nothing */
  16. #define PreANSI(parameters) parameters;
  17. #endif 
  18.  
  19. #ifdef VMS 
  20.  
  21. /* Equate SunPHIGS Specific names to DEC PHIGS names*/
  22.  
  23. #define Ppoint4 PPpoint4 
  24.  
  25. #define PELEM_LOCAL_MODEL_TRAN3 PEL_LOCAL_MODELLING_TRANSFORM3
  26.  
  27. #define PELEM_LOCAL_MODEL_TRAN PEL_LOCAL_MODELLING_TRANSFORM
  28.  
  29. #define PELEM_GLOBAL_MODEL_TRAN3 PEL_GLOBAL_MODELLING_TRANSFORM3
  30.  
  31. #define PELEM_GLOBAL_MODEL_TRAN PEL_GLOBAL_MODELLING_TRANSFORM
  32.  
  33. #define PELEM_ANNO_CHAR_HT PEL_ANNOTATION_TEXT_CHARACTER_H
  34.  
  35. #define PELEM_ANNO_CHAR_UP_VEC PEL_ANNOTATION_TEXT_CHARACTER_U
  36.  
  37. #define PELEM_PAT_REF_POINT_VECS PEL_PAT_REF_POINT_AND
  38.  
  39. #define PELEM_MODEL_CLIP_VOL3 200
  40.  
  41. #define PELEM_MODEL_CLIP_IND PEL_MODELLING_CLIPPING_INDICATO
  42.  
  43. #define PELEM_RESTORE_MODEL_CLIP_VOL PEL_RESTORE_MODELLING_CLIPPING_
  44.  
  45. /*
  46.  Not required for DEC PHIGS 2.3A  
  47. #define PHOR_NORM PTH_NORMAL
  48. #define PHOR_LEFT   PTH_LEFT
  49. #define PHOR_CTR PTH_CENTRE
  50. #define PHOR_RIGHT  PTH_RIGHT
  51. */
  52.  
  53. #define PASPECT_MARKER_SIZE PMARKERWIDTH_SCALE_FACTOR
  54.  
  55. #define PHATCH_HORIZ -4
  56.  
  57. #define PANNO_STYLE_UNCONNECTED PAS_UNCONNECTED
  58.  
  59. #define Pconf_res Pconflictres
  60.  
  61. #define Pin_class Pin_class
  62.  
  63. #define par_all_structs parchiveallstruct
  64.  
  65. #define par_structs parchivestruct
  66.  
  67. #define par_struct_nets parchivestructnet
  68.  
  69. #define pclose_ar_file pclosearchivefile
  70.  
  71. #define pdel_all_structs_ar pdelallstructarchive
  72.  
  73. #define pdel_structs_ar pdelstructarchive
  74.  
  75. #define pdel_struct_nets_ar pdelstructnetarchive
  76.  
  77. #define popen_ar_file popenarchivefile
  78.  
  79. #define pinq_paths_ances pinqancestorsstruct
  80.  
  81. #define pinq_ar_files pinqarchivefiles
  82.  
  83. #define pinq_ar_st pinqarchivest
  84.  
  85. #define pinq_all_conf_structs pinqallconflictstruct
  86.  
  87. #define pinq_conf_res pinqconflictres
  88.  
  89. #define pinq_conf_structs_net pinqconflictstructinnet
  90.  
  91. #define pinq_paths_descs pinqdecendentsstruct
  92.  
  93. #define pinq_num_disp_pris pinqnumstructpri
  94.  
  95. #define pset_conf_res psetconflictres
  96.  
  97. #define pinq_highl_filter pinqhighlightfilter
  98.  
  99. #define pset_highl_filter psethighlightfilter
  100.  
  101. #define pret_struct_ids pretrievearchivedstructids
  102.  
  103. #endif
  104.  
  105. /* where HP fails to meet ISO PHIGS C */
  106.  
  107. #ifdef HP
  108.  
  109. #define size_asf width_asf
  110.  
  111. #endif
  112.  
  113. /* where SUN fails to meet ISO PHIGS C */
  114.  
  115. #ifdef SUN
  116.  
  117. #define in_buf_size buffer_size
  118.  
  119. #endif
  120.  
  121. /* where PEX-SI fails to meet ISO PHIGS C */
  122.  
  123. #ifdef PEXSI
  124.  
  125. #define in_buf_size buffer_size
  126.  
  127. #endif
  128.  
  129. #endif
  130.  
  131.  
  132.  
  133.  
  134.